import http from "@/utils/http";
import type { loginType, registerType } from "@/utils/type";

//用户登录 

export const loginApi = (data:loginType)=> http.post('user/login',data);

//注册
export const registerApi = (data:registerType)=> http.post('user/register',data);

//获取用户信息
export const getUserInfoApi = ()=> http.get('user/info');

